type Handles = 'mr' | 'mb' | 'mt' | 'ml' | 'tl' | 'tr' | 'br' | 'bl';
type IPosition = {
  x: number;
  y: number;
  w: number;
  h: number;
  rotate: number;
};

type ICanvasAttr = {
  /* 是否允许出界 */
  allowOutOfBounds?: boolean;
  scale?: number;
  draggable?: boolean;
  resizable?: boolean;
  rotate?: number;
  active?: boolean;
  _id?: string;
  zIndex?: number;
  gridX?: number;
  gridY?: number;
  id?: string;
};
type ICanvas = ICanvasAttr & IPosition;
export type { Handles, ICanvas, ICanvasAttr, IPosition };
